#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void swap(int* a, int* b)
{
	int tem = *a;
	*a = *b;
	*b = tem;
}
void S(int* arr, int n)
{
	for (int i = 0; i < n - 1; i++)
	{
		for (int b = 0; b < n - i-1;b++) 
		{
			if (*(arr + b) > *(arr + b + 1))
			{
				swap(arr + b, arr + b + 1);
			}
		}
	}
}
void display(int* arr, int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", *(arr + i));
	}
}
void test()
{
	int arr[3];
	scanf_s("%d %d %d", &arr[0], &arr[1], &arr[2]);
	int n = sizeof(arr) / sizeof(arr[0]);
	S(arr, n);
	display(arr, n);
}
int main()
{
	
	test();
	return 0;
}